package com.itheima.mapper;

import com.itheima.entity.pojo.AddressBook;
import com.itheima.entity.vo.addressbook.AddressBookByIdVo;
import com.itheima.entity.vo.addressbook.AddressBookDefaultVo;
import com.itheima.entity.vo.addressbook.AddressBookListVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author huangzelnag
 * @create 2022-05-20
 */
@Mapper
public interface AddressBookMapper {


    Boolean insert(AddressBook addressBook);

    Boolean up(AddressBook addressBook);

    Boolean deleteByIds(@Param("ids") String[] ids);

    AddressBookDefaultVo selectDefault(String userId);

    List<AddressBookListVo> selectList(String userId);

    AddressBookByIdVo selectById(String id);

    AddressBook selectid(String addressBookId);
}
